package com.yikome.uaa.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.yikome.common.CommonRepository;
import com.yikome.uaa.domain.Role;

@Repository
public interface RoleRepository extends CommonRepository<Role, Long> {

	@Query("select t from Role t where t.yn = 1 and t.name = :roleName")
	Role findByName(@Param("roleName")String roleName);
}
